package cn.jimmie.lib.qlog;


import android.content.Context;

/**
 * Func :
 *
 * <p> Create Time:  2019-12-19 17:11 </p>
 * <p> @author Jimmie.Qian  </p>
 */
public final class Options {
    private String tag;
    private String logPath;
    private long logMaxSize;
    private QLogLevel level;
    private Context context;

    public String tag() {
        return tag;
    }

    public String logPath() {
        return logPath;
    }

    public long logMaxSize() {
        return logMaxSize;
    }

    public QLogLevel level() {
        return level;
    }

    public Context context() {
        return context;
    }

    static Options build(QLog.Config conf) {
        Options options = new Options();
        options.level = conf.level;
        options.context = conf.appCtx;
        options.tag = conf.tag;
        options.logPath = conf.logPath;
        options.logMaxSize = conf.logMaxSize;
        return options;
    }
}
